#pragma once
#include "afxdtctl.h"


// CDlgUserAddFunction dialog

class CDlgUserAddFunction : public CDialog
{
	DECLARE_DYNAMIC(CDlgUserAddFunction)

public:
	CDlgUserAddFunction(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgUserAddFunction();

// Dialog Data
	enum { IDD = IDD_DLG_USER_FUNCTION };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCheckIsExpire();
	afx_msg void OnBnClickedCancel();
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()
public:
	BOOL			m_bModifyData;
	IFunctionEx		m_functionEx;
	CString			m_strFunctionName;
	CDateTimeCtrl	m_timeExpire;
	CComboBox		m_comboFunctionName;

	IFunctionEx     GetFunctionEx();
	void            SetFunctionEx(IFunctionEx functionEx);
	void			DisplayInfo();
};
